home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: 76505,125@compuserve.com
- Newsgroups: comp.lang.rexx
- Subject: Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
- Date: 21 Apr 1996 07:26:21 GMT
- Organization: CompuServe Incorporated
- Distribution: inet
- Message-ID: <4lcnut$63j@dub-news-svc-2.compuserve.com>
- References: <abeDq2KtH.5DG@netcom.com>
- Reply-To: 76505,125@compuserve.com
- NNTP-Posting-Host: ad20-019.compuserve.com
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- In <abeDq2KtH.5DG@netcom.com>, abe@netcom.com (Dave Abercrombie) writes:
- >I have not yet found any documentation on what seems like
- >a simple task: I would like to create a folder with the
- >icon view set to "flowed". I can create the folder just
- >fine with code like this:
- >
- >rc = SysCreateObject( 'WPFolder' ,,
- > folderName ,,
- > basePath ,,
- > 'OBJECTID=' || folderID ,,
- > 'R' )
- >If rc = 0 Then Do
- > Say "Could not create folder" folderName 'in' basePath
- > Exit 4
- > End
- >
- >I suspect that I could specify flowed icon view
- >in my WinCreateObject setup string argument, but
- >no amount of trial and error has worked yet, and
- >I sure can not fond documentation on this.
- >
- >Perhaps I could use SysSetObjectData(), but I am
- >still left with the problem of no documentation
- >for the WinCreateObject setup string argument.
- >
- >Please help!
- >
- >--
- >Dave Abercrombie (510) 653-1204 122.15.13 W
- >abe@netcom.com 37.50.58 N
-
- Your suspicions are correct. Here's the REXX/2 statement:
- classname = 'WPProgram'
- title = 'Your Title'
- location = '<DESKTOP>'
- setup = 'OBJECTID = <' || objectid || '>;' || 'ICONVIEW = FLOWED;'
- rc = SysCreateObject( classname,title,location,setup, 'U' )
-
- One favor in return? If you ever do find the complete scource for these
- setup strings, please let me know at 76505.125@compuserve.com
-
- _+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_
- "The bitterness of poor quality lingers long after
- the sweetness of low price has been forgotten.
- danny rubis
- Certified OS/2 Engineer
- LooK Incorporated
- 76505.125@compuserve.com
-
-